home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / inet_tcp / senddisk / senddisk.doc < prev    next >
Text File  |  1989-07-06  |  12KB  |  214 lines

  1. SENDDISK - a utility to backup hard or floppy disks via command-line based 
  2. ftp programs on IBM personal computers and compatibles. (Note: this version
  3. of SENDDISK does not contain a restore feature - retrieval of backed up files
  4. would have to be done manually by using your existing ftp program).
  5.  
  6. REQUIREMENTS:
  7. ------------
  8. 1. The files in the SENDDISK package (SENDDISK.EXE, SENDDISK.DOC and BAT.COM).
  9. 2. A functioning command-line based ftp program on your PC. Note: the only 
  10.    tested FTP programs so far are those from the following TCP/IP packages:
  11.  
  12.         A. NCSA telnet (public domain)
  13.         B. PC-NFS (Sun) 
  14.         C. PC/TCP (FTP Software, Inc.) 
  15.         D. IBM TCP/IP
  16.  
  17.    I cannot guarantee SENDDISK will work with any others (I'd give it about a 
  18.    50/50 chance - give it a try - if you send in a request to get SENDDISK 
  19.    working with another package, I'll give it a shot <randy@mrcnext.cso.uiuc.edu
  20.    128.174.73.105>).
  21. 3. An account on a machine (reachable by your PC's ftp program) that supports  
  22.    FTP requests (backing up to any other than a UNIX machine has not been tested
  23.    - also, backing up to a machine with a flat file system is not recommended, 
  24.    as SENDDISK attempts to recreate the directory structure of your PC's drive) 
  25.  
  26.  
  27. What SENDDISK will need to know:
  28. -------------------------------
  29. 1. the drive to transfer (default is current drive.)
  30. 2. the name of the remote host as you would specify it when using ftp 
  31.    (no default - this is explicitly asked for.)
  32. 3. a login/password combination to use for the ftp connection.
  33. 4. A name to use as the name of a subdirectory that will hold the backup.
  34. 5. Whether to transfer files incrementally (sending files created or modified 
  35.    since the last run of SENDDISK) or completely (sending all files on the 
  36.    volume). The default is "incrementally".
  37. 6. The ftp program to use. SENDDISK does its best to find an ftp program in the 
  38.    current path, but if it can't locate one, you will be prompted for it's file
  39.    specification.
  40.  
  41. Once SENDDISK has all the necessary information, it is presented on screen for 
  42. confirmation, and you are given options to change any of the parameters before 
  43. beginning the transfer process. Once you confirm, SENDDISK attempts a trial 
  44. connection with the chosen host to make sure all is well. If that is successful,
  45. SENDDISK scans the selected drive, creating a script for the ftp program (the 
  46. script is contained in a temporary file called ftpbak.bat in the root directory)
  47. The script will instruct ftp to send files to the remote host (in "binary" or 
  48. "image" mode), recreating the volume's directory structure as it goes along (if 
  49. it doesn't already exist from a previous backup). When the script is complete, 
  50. ftp is called and the script is "fed in" as input.
  51.  
  52. After the transfer is over and if SENDDISK detects no errors, the files that 
  53. were backed up are then marked (by setting the DOS archive bit). After this is 
  54. completed, SENDDISK acknowledges a successful run and exits to DOS.
  55.  
  56.  
  57. A Typical First SENDDISK Session (note: your mileage may vary, etc.):
  58. --------------------------------------------------------------------
  59. Upon running the program, you are presented some information on SENDDISK, its
  60. author, where to ask questions or make requests, etc. 
  61.  
  62. You are first asked to type in the name of the remote ftp host. You should 
  63. identify the host EXACTLY as you would when using ftp, as all that SENDDISK does
  64. with this is call your ftp program with the entered name as argument.
  65.  
  66. You are then asked to enter the login and password to be used when establishing
  67. the ftp connection.
  68.  
  69. Now you are prompted for a name to be used as the name of a subdirectory that
  70. will contain the directory structure of your PC. Note that SENDDISK creates
  71. an exact replica of the directory structure of the transferred volume (e.g.
  72. if your PC has a subdirectory \APPS\NEW, and the name you type in here for 
  73. SENDDISK is MyPCbackup, then your account on the remote host will have a 
  74. subdirectory MyPCbackup/APPS/NEW - the whole tree structure is maintained and
  75. is rooted at the directory MyPCbackup.)
  76.  
  77. At this point, the screen will be cleared, all transfer information will be 
  78. displayed, and you are asked to confirm it. Check to make sure all the 
  79. information is as you desire, especially the drive being sent and the ftp 
  80. program being used. If this really is your first transfer, make sure you 
  81. toggle the backup mode from the default of "incrementally" to "completely"
  82. (this MUST be done at least once, otherwise some files <those with their DOS 
  83. archive bit previously reset for some reason> may not <ever> be backed up.) 
  84.  
  85. When you are satisfied that everything is correct, type g to go ahead, as 
  86. instructed by directions on the screen.
  87.  
  88. Until the ftp transfer actually starts, you may press ESC to gracefully abort
  89. SENDDISK (Ctrl-C or Ctrl-Break exits are strongly discouraged) (you may have
  90. to be patient - don't worry - SENDDISK will halt what it's doing at the first
  91. logical stopping point.) When the ftp transfer session starts up, however, it
  92. is your ftp program that is in total control - ESC will not work here.
  93.  
  94. If all goes well, SENDDISK will confirm a successful transfer before exiting
  95. to DOS.
  96.  
  97. Suggested Backup Strategies:
  98. ---------------------------
  99. *  Do a complete backup at least once - otherwise some files may not be saved.
  100.  
  101. 1. If you use the same subdirectory name using incremental mode every time you 
  102.    backup your drive, SENDDISK will add in new files to the backup structure on 
  103.    the remote host and overwrite updated versions of the same file.
  104.  
  105.   Note:
  106.  
  107.   - If you use this method, even though you may delete files on your drive,
  108.     they will still (in general - see next note) exist on the remote host. That 
  109.     is, new files <and, of course, new directories> will be added to the 
  110.     structure every time you backup and thus the size of the backup structure as
  111.     a whole will generally increase and the growth will depend on the turnover 
  112.     of the files on your PC's volume. 
  113.  
  114.   - If you use this method, when you delete a file from your drive, most of
  115.     the time it will remain on the remote host, but NOT ALWAYS. The only way it 
  116.     would be wiped out is if you created a different file with the identical
  117.     name as the old one in a directory with the identical name as the old one 
  118.     and then ran SENDDISK - generally unlikely, but not impossible.
  119.  
  120. 2. If you use a different subdirectory name each time you do an incremental 
  121.    backup, you can be sure that you will never lose a file that was backed up 
  122.    even if you delete it from your hard or floppy disk. You could, for instance,
  123.    choose subdirectory names such as "hard_drive_backup.7-3-89" that include the
  124.    date. All new or changed files since the last time you used SENDDISK would be
  125.    sent to the remote host. For example, a new file \UTIL\PKUNZIP.EXE would be 
  126.    stored on the remote host as ...
  127.  
  128.          ~<your account name>/hard_drive_backup.7-3-89/UTIL/PKUNZIP.EXE.
  129.  
  130.    SENDDISK always creates any necessary subdirectories, as needed, on the
  131.    remote host.
  132.  
  133.   - If you choose this method, note that it will take up more space on the 
  134.     remote host than method 1 since you will, in general, have many copies of
  135.     frequently updated files scattered among the seperate backups.
  136.  
  137.   - One big disadvantage to using this method is that if you ever have to 
  138.     restore your hard disk from scratch, it will be much more awkward to 
  139.     transfer back the necessary files, since they will be scattered among
  140.     several (perhaps many, many) subdirectory structures.
  141.  
  142. Restoring Files:
  143. ---------------
  144. As mentioned, SENDDISK does not have a restore feature (reasons explained in
  145. the next section). In the event that you have to restore files, you would use
  146. your ftp program to contact the remote host, and navigate through the backup
  147. structure(s) you have created with SENDDISK, transfering back any needed files.
  148. *NOTE* You MUST explicitly specify the transfer mode as "binary" or"image" - 
  149. otherwise, any transferred files will be CORRUPT. Transfering by hand using ftp
  150. is not as bad as you might think because any ftp worth its salt has a wildcard
  151. feature available to transfer many files with one command. 
  152.  
  153.  
  154. More About SENDDISK:
  155. -------------------
  156. Some may say that SENDDISK is somewhat makeshift.
  157. I agree.
  158.  
  159. A "really good" ftp backup utility would contain its own ftp communications
  160. capability and not rely on someone else's ftp program. However, this would 
  161. entail programming at a very low level (TCP/IP at the network card I/O level)
  162. and I'm not quite comfortable with that kind of programming yet. Also, I would
  163. have to have a driver for all the various network cards that go into PC's these
  164. days. This, in itself, would be a major, major undertaking.
  165.  
  166. A "really good" ftp backup utility would be able to restore files as well as
  167. save them. However, given the above neccessity that SENDDISK cannot communicate
  168. *directly* with the remote host, there is no practical way of keeping a reliable
  169. record of precisely *what* files are actually on the remote host. SENDDISK has
  170. no practical way of knowing what to restore.
  171.  
  172. A "really good" ftp backup utility wouldn't rely on a third party batch language
  173. extension - it would be self-contained. SENDDISK needs BAT.COM to work. BAT.COM
  174. is part of EBL (Extended Batch Language), a shareware product from Seaware Corp.
  175. - P.O. Box 1656, Delray Beach, FL 33444. (By the way, I highly recommend EBL as
  176. a very powerful addition/replacement for DOS batch language - the shareware 
  177. distribution package also includes the following files - BATDOC.BAT, BATDOC2.BAT 
  178. BATDEMO.BAT and BATFUNC1.BAT - paying the shareware registration of $49 gives 
  179. you an excellent manual, many, many more functions, and excellent support via 
  180. BBS and phone - the latest version of the publicly distributable version of
  181. EBL can usually be found via anonymous ftp to uxe.cso.uiuc.edu <128.174.5.54>
  182. in /pc/all or /pc/exec-pc).
  183.  
  184. I use BAT.COM mainly for two things:
  185.  
  186.         1. to do the actual piping of commands to arbitrary ftp programs via
  187.            a modified DOS keyboard buffer.
  188.         2. to scan the screen after the ftp program exits in order to identify
  189.            errors that occured in ftp.
  190.  
  191. The first reason necessitated the use of EBL, as I was reluctant to program 
  192. at the BIOS level in order to queue up arbitrarily many characters in the 
  193. keyboard buffer.
  194.  
  195. Thus , SENDDISK is makeshift, I agree, but neccessarily so, in my case. It 
  196. *CAN*, however, make the job of backing up someone's hard drive much, much 
  197. easier to deal with if he just happens to be on a TCP/IP network (a growing 
  198. phenomenon these days, you know). Just set it up and let it fly (and go have
  199. lunch).
  200.  
  201. As I become a more experienced programmer, later versions of SENDDISK will
  202. resolve the makeshift aspects, and also add a restore feature.
  203.  
  204.                                   Randall Cotton
  205.                                   Micro Resource Center Staff
  206.                                   Computing Services Office
  207.                                   University of Illinois Urbana/Champaign
  208.                                   randy@mrcnext.cso.uiuc.edu (128.174.73.105)
  209.                                   (217)-244-6264
  210.                                               
  211.                                   this document last updated: July 6, 1989
  212. 
  213.  
  214.